package com.sts.jdbc.model;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ColumnInfo {

    /**
     * jdbc查出来什么样就什么样
     */
    private String columnName;
    private String typeName;
    private Integer length;
    private Integer precision;
    private Boolean nullable;
    private String remark;

    private Short keySeq;
    private String pkName;

    public ColumnInfo(String columnName, Short keySeq, String pkName) {
        this.columnName = columnName;
        this.keySeq = keySeq;
        this.pkName = pkName;
    }

    public ColumnInfo(String columnName, String typeName, Integer length, Integer precision, Boolean nullable, String remark) {
        this.columnName = columnName;
        this.typeName = typeName;
        this.length = length;
        this.precision = precision;
        this.nullable = nullable;
        this.remark = remark;
    }
}
